package com.qaml.mes.device.dao.mapper;

import com.qaml.mes.device.dao.CheckUpkeepMessageDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 检保项目消息 Mapper 接口
 * </p>
 *
 * @author leikai
 * @since 2024-03-04
 */
@Mapper
public interface CheckUpkeepMessageMapper extends BaseMapper<CheckUpkeepMessageDO> {

    void saveBatch(List<CheckUpkeepMessageDO> checkUpkeepMessages);

    void updateByIds(@Param("ids") List<String> ids, @Param("userId") String userId, @Param("userName") String userName);

    void deleteAll(@Param("ids") List<String> ids);

    void deleteByRecordIdAndType(@Param("recordId") String recordId, @Param("type") String type);
}
